import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    // 以静态路由表作为初始值
    menus: [...constantRoutes]
  },
  mutations: {
    // 设置动态路由表
    SET_ROUTERLIST (state, list) {
      state.menus = [...constantRoutes, ...list]
    }
  }
}
